package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.MatrUnit;

import java.util.Map;

/**
 * <p>
 * 耗材单位 Service
 * </p>
 */

public interface MatrUnitService extends IBaseService<MatrUnit> {
    /**
     * @Description：选择使用
     */
    public Page<Map> pageForSelect(QueryContext context, Map<String, Object> userParam);

    boolean updateItem(MatrUnit entity);

    Double getPackageRateByMatrIdAndUnitName(String matrId, String packageUnit);
}
